package com.zhijian.medical.service;

import com.zhijian.medical.entity.po.ExperimentProcessResult;
import com.zhijian.medical.entity.vo.request.ExperimentProcessResultSaveOrUpdateVo;
import com.zhijian.medical.entity.vo.request.ExperimentProcessResultSearchVo;
import com.zhijian.medical.entity.vo.response.ExperimentProcessResultVo;
import com.zhijian.medical.util.Page;

import java.util.List;

/**
 * 实验流程-结果 业务处理层
 *
 * @author HCG
 * @version 1.0
 * @date 2022-04-08 23:19:07
 */
public interface ExperimentProcessResultService {

    /**
     * 主键查询
     *
     * @param id
     * @return
     */
    ExperimentProcessResult selectById(Long id);

    /**
     * 主键查询vo
     *
     * @param id
     * @return
     */
    ExperimentProcessResultVo selectVoById(Long id);

    /**
     * 按照主键删除
     *
     * @param id
     */
    void deleteById(Long id);

    /**
     * 根据实验流程id进行删除
     *
     * @param experimentProcessId
     * @return
     */
    void deleteByExperimentProcessId(Long experimentProcessId);

    /**
     * 根据实验流程id与项目进行删除
     *
     * @param experimentProcessId
     * @param project
     * @return
     */
    void deleteByExperimentProcessIdAndProject(Long experimentProcessId, String project);

    /**
     * 根据实验流程id与项目与设备id进行删除
     *
     * @param experimentProcessId
     * @param project
     * @param deviceId
     * @return
     */
    void deleteByExperimentProcessIdAndProjectAndDeviceId(Long experimentProcessId, String project, Long deviceId);

    /**
     * 根据实验流程id与设备id进行删除
     *
     * @param experimentProcessId
     * @param deviceId
     * @return
     */
    void deleteByExperimentProcessIdAndDeviceId(Long experimentProcessId, Long deviceId);

    /**
     * 新增
     *
     * @param experimentProcessResult
     * @return
     */
    Long insert(ExperimentProcessResult experimentProcessResult);

    /**
     * 修改or新增
     *
     * @param experimentProcessResultSaveOrUpdateVo
     * @return
     */
    Long insertOrUpdate(ExperimentProcessResultSaveOrUpdateVo experimentProcessResultSaveOrUpdateVo);

    /**
     * 更改
     *
     * @param experimentProcessResult
     * @return
     */
    boolean update(ExperimentProcessResult experimentProcessResult);

    /**
     * 总数
     *
     * @param experimentProcessResultSearchVo
     * @return
     */
    Integer count(ExperimentProcessResultSearchVo experimentProcessResultSearchVo);

    /**
     * 列表
     *
     * @param experimentProcessResultSearchVo
     * @return
     */
    List<ExperimentProcessResultVo> selectList(ExperimentProcessResultSearchVo experimentProcessResultSearchVo);

    /**
     * 分页查询
     *
     * @param experimentProcessResultSearchVo
     * @return
     */
    Page<ExperimentProcessResultVo> selectPage(ExperimentProcessResultSearchVo experimentProcessResultSearchVo);

}